package com.example.service.impl;

import com.example.mapper.RoleMapper;
import com.example.model.Role;
import com.example.service.RoleService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

@RequiredArgsConstructor
@Service
public class RoleServiceImpl implements RoleService {
    private final RoleMapper roleMapper;
    @Override
    public Role getRoleById(int id){

        return roleMapper.selectById(id);
    }
}
